Skip to content

feat: UdpSocket/UdpStream - #150

Merged
pchickey merged 1 commit into
bytecodealliance:mainfrom
ryan-surname-p:rnpridgeon-p2-udp
Sep 8, 2026
Merged

feat: UdpSocket/UdpStream#150
pchickey merged 1 commit into
bytecodealliance:mainfrom
ryan-surname-p:rnpridgeon-p2-udp

Conversation

@ryan-surname-p

Copy link
Copy Markdown
Contributor

closes #95

Comment thread src/net/mod.rs
}
}

fn sockaddr_from_wasi(addr: IpSocketAddress) -> std::net::SocketAddr {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lifted from net/tcp_listern.rs

Comment thread src/net/tcp_listener.rs
}
}

fn sockaddr_from_wasi(addr: IpSocketAddress) -> std::net::SocketAddr {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lifted to net/mod.rs

Ok(())
}

fn get_listening_address(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lifted into lib.rs

Comment thread test-programs/src/lib.rs
///
/// Guest programs which bind a socket print `Listening on {addr}`, so that a
/// test can discover the address even when the guest picked the port.
pub fn get_listening_address(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lifted from tests/tcp_echo_server.rs

@ryan-surname-p
ryan-surname-p marked this pull request as ready for review September 4, 2026 17:40
@pchickey
pchickey merged commit b9b83a7 into bytecodealliance:main Sep 8, 2026
5 checks passed
@pchickey

pchickey commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Thanks, Ryan!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add UdpStream

2 participants